# js文件

data: {
    thisWeekMovie:[
     {
      name:"The river flow in you",
      comment:"舒缓",
      imagePath:"/images/demo1网抑云.jpg",
      higlyrecommend:true
     },

# wxml文件

<view class="container music-card">
      <image class="music-image" src="{{item.imagePath}}"></image>
      <text>第{{index+1}}周：{{item.name}}</text>
      <text>点评：{{item.comment}}</text>
      <text wx:if="{{item.higlyrecommend}}" style="font-size:16;color:red;">安利</text>
      <text bindtap="f0" wx:if="{{index < (thisWeekMovie.length -1)}}" class="return-button">返回本周推荐</text>
    </view>

# 渲染
# 条件渲染
# wx:if="{{thisWeekMovie.higlyrecommend}}" 绑定渲染生成条件,并由higlyrecommend是true/false决定


# 列表渲染
# wx:for="{{}}" 循环控制，根据所绑定的thisWeekMovie中的每一个值重复渲染
<swiper-item class="music" wx:for="{{thisWeekMovie}}">